﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Administrator/EHTAdmin.Master" AutoEventWireup="true" CodeBehind="AdminOrderDetail.aspx.cs" Inherits="EHTWebsiteProject.Administrator.AdminOrderDetail" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MenuModulContent" runat="server">
 <div class="MenuSub-Left" >
        <table>
            <tr>
                <td> <img alt="" src="../images/EHTgiaodien/icon-48-user.png" /></td>
                <td><asp:Label ID="lbOrder" runat="server" Text="Quản lý Orders" ></asp:Label></td>
            </tr>
        </table>           
    </div>
    <div class="MenuSub-Right" align="right">
      
    </div>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentMain" runat="server">
 <table cellspacing="0" cellpadding="0" class="data-table">
        <tr>
            <td>
                <div class="accountInfo">
                    <fieldset class="login">
                        <legend>Order Informasjon</legend>
                        <asp:Label ID="ltrMessage" runat="server"   CssClass="failureNotification" />
                        <table cellpadding="2" style="width: 100%">
                            <tr>
                                <td style="width: 100px; white-space: nowrap">
                                   Kunde Navn:
                                </td>
                                <td>
                                    <asp:Label ID="lbCustomerName" runat="server" />
                                </td>
                                <td style="width:300px"><asp:LinkButton ID="lbtnDownloadBill" runat="server" onclick="lbtnDownloadBill_Click">Last ned bill</asp:LinkButton>
                                    Bill: 
                                    
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    Adresse:
                                </td>
                                <td>
                                    <asp:Label ID="lbAddress" runat="server" />
                                </td>
                                <td rowspan="7">
                                    <asp:Image ID="imgBill" runat="server" Height="200px" 
                                        ImageUrl="" Width="300px" />
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    By:
                                </td>
                                <td>
                                    <asp:Label ID="lbCity" runat="server" />
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    Region:
                                </td>
                                <td>
                                    <asp:Label ID="lbRegion" runat="server" />
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    Telefon:
                                </td>
                                <td>
                                    <asp:Label ID="lbPhone" runat="server" />
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    Order Dato::
                                </td>
                                <td>
                                    <asp:Label ID="lbCreatedDate" runat="server" />
                                </td>
                            </tr>
                            <tr>
                                <td>
                                   Nødvendige Dato:
                                </td>
                                <td>
                                    <asp:Label ID="lbRequiredDate" runat="server" />
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    Total Amount:
                                </td>
                                <td>
                                    <asp:Label ID="lbTotalAmount" runat="server" />
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    Service Cost:
                                </td>
                                <td>
                                    <asp:Label ID="lbServiceCost" runat="server" />
                                </td>
                                <td>
                                    <asp:FileUpload ID="fuBillUpload" runat="server" ViewStateMode="Enabled" 
                                        Width="100%" />
                                </td>
                            </tr>
                        </table>
                    </fieldset>
                </div>
            </td>
        </tr>
        <tr>
            <td>
                <fieldset class="login">
                    <legend>Ordredetaljer</legend>
                    <asp:Repeater ID="rOrderDetails" runat="server">
                        <HeaderTemplate>
                            <table cellspacing="0" cellpadding="0" class="data-table">
                                <thead>
                                    <tr>
                                        <th>
                                            Produktnavn
                                        </th>
                                        <th>
                                           Unit Pris
                                        </th>
                                        <th>
                                            Antall
                                        </th>
                                        <th>
                                            Rabatt
                                        </th>
                                    </tr>
                                </thead>
                                <tbody>
                        </HeaderTemplate>
                        <ItemTemplate>
                            <tr>
                                <th>
                                    <%#Eval("TenSanPhamVN")%>
                                </th>
                                <td>
                                    <%#Eval("UnitPrice")%>
                                </td>
                                <td>
                                    <%#Eval("Quantity")%>
                                </td>
                                <td>
                                    <%#Eval("Discount")%>
                                </td>
                            </tr>
                        </ItemTemplate>
                        <FooterTemplate>
                            </tbody> </table>
                        </FooterTemplate>
                    </asp:Repeater>
                </fieldset>
            </td>
        </tr>
    </table>
    <div style="padding:0px; text-align:right">
        <p class="submitButton">
        <asp:Button ID="btnSave" runat="server" Text="Oppdatering Bill" 
            ValidationGroup="HistoryOfOrderGroup" onclick="btnSave_Click" />
        <asp:Button ID="btnShip" runat="server" Text="Ship Order" 
            ValidationGroup="HistoryOfOrderGroup" onclick="btnShip_Click" />
        <asp:Button ID="btnBack" runat="server" OnClick="btnBack_Click" Text="Tilbake liste Orders" />
    </p>
    </div>
</asp:Content>
